package dp.gr03.payroll.methods;

import dp.gr03.payroll.Paycheck;
import dp.gr03.payroll.payrollDomain.PaymentMethod;

public class MailMethod implements PaymentMethod
{
    protected String address;
    
    public MailMethod(String address){
        this.address = address;
    }

    @Override
    public void pay(Paycheck pc)
    {
        pc.setField("SendTo", address);

    }
}
